// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import store from './store'
import cjcAPI from './cjcAPI'
import iview from './ivewInstall'
import 'iview/dist/styles/iview.css'
import 'animate.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'vue-awesome-swiper/swiper.min.css'
import App from './App.vue'
import vueScrollBehavior from 'vue-scroll-behavior'

// Using vueScrollBehavior
Vue.use(vueScrollBehavior, {
    router: router,    // The router instance
    maxLength: 1000,    // Saved history List max length
    ignore: [/\/boo/, /\/zoo/]    // ignore some routes, they will directly scroll to the top
})

// cjcJSapi载入
Vue.use(VueAwesomeSwiper)
Vue.use(cjcAPI)
Vue.use(iview)
// 生产模式下是否提示
Vue.config.productionTip = true

new Vue({
    el: '#app',
    components: {
        App
    },
    template: '<App/>',
    router,
    store,
    beforeCreate() {
        this.$cjc.viewInit()
    }
})
